extends Node2D
# 攻击跳动
func _ready() -> void:
	pass
	
func start(text: String):
	$Label.text = text
	
	var tween = create_tween()
	var scale_tween = create_tween()
	
	tween.tween_property(self, "global_position", global_position+ (Vector2.UP* 30), 0.5)\
	 .set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_CUBIC)
	scale_tween.tween_property(self, "scale", Vector2.ONE*1.2, 0.5)\
	 .set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_CUBIC)
	tween.tween_property(self, "global_position", global_position+ (Vector2.UP* 60), 0.3)\
	 .set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_CUBIC)
	scale_tween.tween_property(self, "scale", Vector2.ZERO, 0.3)\
	 .set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_CUBIC)
	
	tween.tween_callback(queue_free)
	
	
	
	
